package com.yd.domain.commom;

import java.util.ArrayList;
import java.util.List;

/**
 *分页返回model
 */
public class PageModel {
    private int count=0;
    private List list=new ArrayList();

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }
    public PageModel(){}
    public PageModel(int count, List list) {
        this.list=list;
        this.count = list==null||list.isEmpty()?0:count;
    }
}
